<?php
$config['menu'] = array(

  array(
    'title' => 'Beranda',
    'url' => '',
    'is_url' => true,
    'accessModule' => false,
    'accessController' => false,
    'accessAction' => false,
    'is_child'=> false,
    'child' =>  array()
  ),

  //Registrasi
  array(
    'title' => 'Registrasi',
    'url' => '',
    'is_url' => false,
    'module' => 'nms',
    'accessModule' => array(),
    'accessController' => false,
    'accessAction' => false,
    'accessActionList' => array(
                            array('module'=>'klinik','controller'=>'registrasi','action'=>'view'),
                            array('module'=>'klinik','controller'=>'registrasi','action'=>'regbaru'),
                            array('module'=>'klinik','controller'=>'registrasi','action'=>'regmember'),
                        ),
    'is_child'=> true,
    'child' =>  array(
          //Reg Pasien Baru
	      array(
	        'title' => 'Daftar Hari Ini',
	        'url' => 'klinik/registrasi/view',
	        'is_url' => true,
	        'accessModule' => false,
	        'accessController' => false,
	      	'accessActionList' => array(
	                            array('module'=>'klinik','controller'=>'registrasi','action'=>'view'),
	                        ),
	        'is_child'=> false,
	        'child' =>  array()
	      ),
	      
	      //Reg Pasien Baru
	      array(
	        'title' => 'Pasien Baru',
	        'url' => 'klinik/registrasi/regBaru',
	        'is_url' => true,
	        'accessModule' => false,
	        'accessController' => false,
	      	'accessActionList' => array(
	                            array('module'=>'klinik','controller'=>'registrasi','action'=>'regbaru'),
	                        ),
	        'is_child'=> false,
	        'child' =>  array()
	      ),
	      
	      //Reg Pasien Lama
	      array(
	        'title' => 'Pasien Ulang',
	        'url' => 'klinik/registrasi/regMember',
	        'is_url' => true,
	        'accessModule' => false,
	        'accessController' => false,
	      	'accessActionList' => array(
	                            array('module'=>'klinik','controller'=>'registrasi','action'=>'regmember'),
	                        ),
	        'is_child'=> false,
	        'child' =>  array()
	      ),
	      
	      //Laporan
	      array(
	        'title' => 'Laporan',
	        'url' => '',
	        'is_url' => true,
	        'accessModule' => false,
	        'accessController' => false,
	      	'accessAction' => false,
    		'accessActionList' => array(
                            array('module'=>'klinik','controller'=>'reportreg','action'=>'regbaru'),
                            array('module'=>'klinik','controller'=>'reportreg','action'=>'regmember'),
                        ),
	        'is_child'=> true,
	        'child' =>  array(
                        	//Reg Pasien Baru
						      array(
						        'title' => 'Pasien Baru',
						        'url' => 'klinik/reportReg/regBaru',
						        'is_url' => true,
						        'accessModule' => false,
						        'accessController' => false,
						      	'accessActionList' => array(
						                            array('module'=>'klinik','controller'=>'reportreg','action'=>'regbaru'),
						                        ),
						        'is_child'=> false,
						        'child' =>  array()
						      ),
						      
						      //Reg Pasien Lama
						      array(
						        'title' => 'Pasien Member',
						        'url' => 'klinik/reportReg/regMember',
						        'is_url' => true,
						        'accessModule' => false,
						        'accessController' => false,
						      	'accessActionList' => array(
						                            array('module'=>'klinik','controller'=>'reportreg','action'=>'regmember'),
						                        ),
						        'is_child'=> false,
						        'child' =>  array()
						      ),
	                    )
	        //End Laporan
	        
	      ),

	 ),
  ),
  //End Registrasi
  
  //Kasir
  array(
    'title' => 'Kasir',
    'url' => '',
    'is_url' => false,
    'module' => 'nms',
    'accessModule' => array(),
    'accessController' => false,
    'accessAction' => false,
    'accessActionList' => array(
                            array('module'=>'kasir','controller'=>'payment','action'=>'today'),
                            array('module'=>'kasir','controller'=>'payment','action'=>'view'),
                        ),
    'is_child'=> true,
    'child' =>  array(
          //Payment Today
	      array(
	        'title' => 'Pembayaran Hari Ini',
	        'url' => 'klinik/payment/today',
	        'is_url' => true,
	        'accessModule' => false,
	        'accessController' => false,
	      	'accessActionList' => array(
	                            array('module'=>'kasir','controller'=>'payment','action'=>'today'),
	                        ),
	        'is_child'=> false,
	        'child' =>  array()
	      ),
	      
	      //Payment All
	      array(
	        'title' => 'History Pembayaran',
	        'url' => 'klinik/payment/view',
	        'is_url' => true,
	        'accessModule' => false,
	        'accessController' => false,
	      	'accessActionList' => array(
	                            array('module'=>'kasir','controller'=>'payment','action'=>'view'),
	                        ),
	        'is_child'=> false,
	        'child' =>  array()
	      ),

	 ),
  ),
  //End Kasir
  
  //Klinik
  array(
    'title' => 'Klinik',
    'url' => '',
    'is_url' => false,
    'module' => 'nms',
    'accessModule' => array(),
    'accessController' => false,
    'accessAction' => false,
  	'accessActionList' => array(
                            array('module'=>'klinik','controller'=>'pasien','action'=>'view'),
                            array('module'=>'klinik','controller'=>'payment','action'=>'view'),
                            array('module'=>'klinik','controller'=>'alat','action'=>'view'),
                            array('module'=>'klinik','controller'=>'pemeriksaan','action'=>'view'),
                            array('module'=>'klinik','controller'=>'dokter','action'=>'view'),
                            array('module'=>'klinik','controller'=>'rekammedis','action'=>'view'),
                        ),
    'is_child'=> true,
    'child' =>  array(
      
      //Data Master
      array(
        'title' => 'Referensi',
        'is_url' => false,
        'accessModule' => false,
        'accessController' => false,
      	'accessActionList' => array(
                            array('module'=>'klinik','controller'=>'alat','action'=>'view'),
                            array('module'=>'klinik','controller'=>'pemeriksaan','action'=>'view'),
                            array('module'=>'klinik','controller'=>'dokter','action'=>'view'),
                        ),
        'is_child'=> true,
        'child' =>  array(
                        //Alat
                        array(
					        'title' => 'Alat',
					        'url' => 'klinik/alat/view',
					        'is_url' => true,
					        'accessModule' => false,
					        'accessController' => false,
					      	'accessActionList' => array(
					                            array('module'=>'klinik','controller'=>'alat','action'=>'view'),
					                        ),
					        'is_child'=> false,
					        'child' =>  array()
					     ),
					     
					    //Pemeriksaan
                        array(
					        'title' => 'Pemeriksaan',
					        'url' => 'klinik/pemeriksaan/view',
					        'is_url' => true,
					        'accessModule' => false,
					        'accessController' => false,
					      	'accessActionList' => array(
					                            array('module'=>'klinik','controller'=>'pemeriksaan','action'=>'view'),
					                        ),
					        'is_child'=> false,
					        'child' =>  array()
					      ),
					      
					      //Dokter
                          array(
					        'title' => 'Dokter',
					        'url' => 'klinik/dokter/view',
					        'is_url' => true,
					        'accessModule' => false,
					        'accessController' => false,
					      	'accessActionList' => array(
					                            array('module'=>'klinik','controller'=>'dokter','action'=>'view'),
					                        ),
					        'is_child'=> false,
					        'child' =>  array()
					      ),
                    ),
      ),
      //End Data Master
      
      //Pasien
      array(
        'title' => 'Pasien',
        'url' => 'klinik/pasien/view',
        'is_url' => true,
        'accessModule' => false,
        'accessController' => false,
      	'accessActionList' => array(
                            array('module'=>'klinik','controller'=>'pasien','action'=>'view'),
                        ),
        'is_child'=> false,
        'child' =>  array()
      ),

      //Rekam Medis
      array(
		'title' => 'Rekam Medis',
		'url' => 'klinik/rekamMedis/view',
		'is_url' => true,
		'accessModule' => false,
		'accessController' => false,
	      	'accessActionList' => array(
		                    array('module'=>'klinik','controller'=>'rekammedis','action'=>'view'),
		                ),
		'is_child'=> false,
		'child' =>  array()
      ),
      
    )
  ),
  //End Klinik

  //Akuntansi
  array(
    'title' => 'Akuntansi',
    'url' => '',
    'is_url' => false,
    'module' => 'nms',
    'accessModule' => array('akuntansi'),
    'accessController' => false,
    'accessAction' => false,
    'is_child'=> true,
    'accessActionList' => array(
                            array('module'=>'akuntansi','controller'=>'rekening','action'=>'view'),
                            array('module'=>'akuntansi','controller'=>'rektipe','action'=>'view'),
                            array('module'=>'akuntansi','controller'=>'rekrincian','action'=>'view'),
                            array('module'=>'akuntansi','controller'=>'akun','action'=>'view'),
                        ),
    'is_child'=> true,
    'child' =>  array(
      
      //Data Rekening
      array(
        'title' => 'Rekening',
        'is_url' => false,
        'accessModule' => false,
        'accessController' => false,
      	'accessActionList' => array(
                            array('module'=>'akuntansi','controller'=>'rekrincian','action'=>'view'),
                            array('module'=>'akuntansi','controller'=>'rekhistory','action'=>'view'),
                        ),
        'is_child'=> true,
        'child' =>  array(
                        //Saat ini
                        array(
					        'title' => 'Saat ini',
					        'url' => 'akuntansi/rekRincian/view',
					        'is_url' => true,
					        'accessModule' => false,
					        'accessController' => false,
					      	'accessActionList' => array(
					                            array('module'=>'akuntansi','controller'=>'rekrincian','action'=>'view'),
					                        ),
					        'is_child'=> false,
					        'child' =>  array()
					     ),
					     
					    //History
                        array(
					        'title' => 'History',
					        'url' => 'akuntansi/rekHistory/view',
					        'is_url' => true,
					        'accessModule' => false,
					        'accessController' => false,
					      	'accessActionList' => array(
					                            array('module'=>'akuntansi','controller'=>'rekhistory','action'=>'view'),
					                        ),
					        'is_child'=> false,
					        'child' =>  array()
					   ),
					   //End History

					   //Data Master
				      array(
				        'title' => 'Referensi',
				        'is_url' => false,
				        'accessModule' => false,
				        'accessController' => false,
				      	'accessActionList' => array(
				                            array('module'=>'akuntansi','controller'=>'rekening','action'=>'view'),
				                            array('module'=>'akuntansi','controller'=>'rektipe','action'=>'view'),
				                        ),
				        'is_child'=> true,
				        'child' =>  array(
				                        //Rekening
				                        array(
									        'title' => 'Nama Rekening',
									        'url' => 'akuntansi/rekening/view',
									        'is_url' => true,
									        'accessModule' => false,
									        'accessController' => false,
									      	'accessActionList' => array(
									                            array('module'=>'akuntansi','controller'=>'rekening','action'=>'view'),
									                        ),
									        'is_child'=> false,
									        'child' =>  array()
									     ),
									     
									    //Rekening Tipe
				                        array(
									        'title' => 'Tipe Rekening',
									        'url' => 'akuntansi/rekTipe/view',
									        'is_url' => true,
									        'accessModule' => false,
									        'accessController' => false,
									      	'accessActionList' => array(
									                            array('module'=>'akuntansi','controller'=>'rektipe','action'=>'view'),
									                        ),
									        'is_child'=> false,
									        'child' =>  array()
									      ),
				
				                    ),
				      ),
				      //End Data Master

                    ),
      ),
      //End Rekening

      
      //Data Aktiva & Pasiva
      array(
        'title' => 'Aktiva & Pasiva',
        'is_url' => false,
        'accessModule' => false,
        'accessController' => false,
      	'accessActionList' => array(
                            array('module'=>'akuntansi','controller'=>'akunrincian','action'=>'view'),
                            array('module'=>'akuntansi','controller'=>'akunhistory','action'=>'view'),
                        ),
        'is_child'=> true,
        'child' =>  array(
                        //Saat ini
                        array(
					        'title' => 'Saat ini',
					        'url' => 'akuntansi/akunRincian/view',
					        'is_url' => true,
					        'accessModule' => false,
					        'accessController' => false,
					      	'accessActionList' => array(
					                            array('module'=>'akuntansi','controller'=>'akunrincian','action'=>'view'),
					                        ),
					        'is_child'=> false,
					        'child' =>  array()
					     ),
					     
					    //History
                        array(
					        'title' => 'History',
					        'url' => 'akuntansi/akunHistory/view',
					        'is_url' => true,
					        'accessModule' => false,
					        'accessController' => false,
					      	'accessActionList' => array(
					                            array('module'=>'akuntansi','controller'=>'akunhistory','action'=>'view'),
					                        ),
					        'is_child'=> false,
					        'child' =>  array()
				        ),
				        //End History
				        
				        //Data Master
					      array(
					        'title' => 'Referensi',
					        'is_url' => false,
					        'accessModule' => false,
					        'accessController' => false,
					      	'accessActionList' => array(
					                            array('module'=>'akuntansi','controller'=>'akun','action'=>'view'),
					                            array('module'=>'akuntansi','controller'=>'akuntipe','action'=>'view'),
					                        ),
					        'is_child'=> true,
					        'child' =>  array(
					                        //Rekening
					                        array(
										        'title' => 'Nama Akun',
										        'url' => 'akuntansi/akun/view',
										        'is_url' => true,
										        'accessModule' => false,
										        'accessController' => false,
										      	'accessActionList' => array(
										                            array('module'=>'akuntansi','controller'=>'akun','action'=>'view'),
										                        ),
										        'is_child'=> false,
										        'child' =>  array()
										     ),
										     
										    //Rekening Tipe
					                        array(
										        'title' => 'Tipe Akun',
										        'url' => 'akuntansi/akunTipe/view',
										        'is_url' => true,
										        'accessModule' => false,
										        'accessController' => false,
										      	'accessActionList' => array(
										                            array('module'=>'akuntansi','controller'=>'akuntipe','action'=>'view'),
										                        ),
										        'is_child'=> false,
										        'child' =>  array()
										      ),
					
					                    ),
					      ),
					      //End Data Master

                    ),
      ),
      //End Aktiva & Pasiva
      
    )
  ),
  //End Akuntansi 

);


